﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VietPay.KooBoo.Business.Models.BatchDetailListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Mã lô: <%:ViewData["BatchCode"] %> </h2>

<table>
    <tr>
        <th>
            Mệnh giá/Gói Sp
        </th>
        <th>
            Số lượng
        </th>
        <th>
            Số lượng tồn
        </th>
        <th>
            Giá
        </th>
        <th>
            Tổng tiền
        </th>
    </tr>

<% foreach (var item in Model.BatchDetailList) { %>
    <tr>
        <td>
            <%: item.ProductName %>
        </td>
        <td>
            <%: item.Quantity %>
        </td>
        <td>
            <%: item.QuantityBalance %>
        </td>
        <td>
            <%: item.Price %>
        </td>
        <td>
            <%: String.Format("{0:F}", item.Total) %>
        </td>
    </tr>  
<% } %>
    
</table>
<div>
    <tr></tr>
    <tr>
        <%: Html.ActionLink("Quay lại", "index","Batch", null,null) %>
    </tr>
</div>
</asp:Content>

